package com.xuanyuan.model;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Userinfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "userinfo", catalog = "send_message")
public class Userinfo implements java.io.Serializable {

	// Fields

	private UserinfoId id;

	// Constructors

	/** default constructor */
	public Userinfo() {
	}

	/** full constructor */
	public Userinfo(UserinfoId id) {
		this.id = id;
	}

	// Property accessors
	@EmbeddedId
	@AttributeOverrides( {
			@AttributeOverride(name = "userName", column = @Column(name = "userName", length = 10)),
			@AttributeOverride(name = "phoneNumber", column = @Column(name = "phoneNumber", length = 15)) })
	public UserinfoId getId() {
		return this.id;
	}

	public void setId(UserinfoId id) {
		this.id = id;
	}

}